function Model(){
	"use strict";
	//
	// Current model update and rendering timestamp
	this.currentTimestamp=Date.now();
	this.deltaTimestamp=0;
	//
	// Ball status (TODO: Remove)
	this.x=0;
	this.y=0;
	//
	//this.map //Map
	//this.objectBag //Objects
}

Model.prototype.initialize = function(mapName) {
	"use strict";
	// Load Map and objects
	MapUtils.loadMap(mapName);
};

Model.prototype.update = function() {
	"use strict";
	var auxTS=Date.now();
	this.deltaTimestamp=auxTS-this.currentTimestamp;
    this.currentTimestamp=auxTS;
	// update model
	var i, object;
	for (i=0; i<Game.model.objectBag.objects.length; i=i+1){
		object = Game.model.objectBag.objects[i];
		object.update();
	}	
};
